<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title></title>
  </head>
  <body onload="load()">
    <noscript>
      <strong>We're sorry but iview-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
  <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
  <script type="text/javascript">
    function load(){
      console.log(location.hostname);
      let params={};
      params.propertyNo=location.hostname;
      let baseurl="http://estate.siyueluo.com/api/dept/getPropertyInfo"
      $.ajax({
          type: "POST",
          hearder:"x-access-token",
          url: baseurl,
          data: params,
          success: function(msg) {
              console.log(msg)
            if (msg.code==20000 && msg.data != null) {
              document.title=msg.data.title
            }else{
              document.title="智慧物业"
            }
          },
          error : function(msg) {
            console.log(msg);
          }
        });
        return false;

    }
  </script>
</html>
